package cn.lingyangwl.agile.ram;

import cn.lingyangwl.framework.core.response.Resp;
import cn.lingyangwl.agile.ram.model.ResourceSyncResp;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Set;

import static cn.lingyangwl.agile.ram.RamSdkCons.API_LIST_SYNC_RESOURCE;

/**
 * @author shenguangyang
 */
@RestController
public class RamSdkController {

    /**
     * 获取资源数据
     */
    @PostMapping(API_LIST_SYNC_RESOURCE)
    public Resp<Set<ResourceSyncResp>> listSyncResource() {
        return Resp.ok(RamResourceInit.resourceList);
    }
}
